package com.runjian.rundo.iot.agent.business.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Getter;
import lombok.Setter;

/**
 * 业务常量
 *
 * @author CaoQingHua
 */
@Getter
@Setter
@ConditionalOnProperty(prefix = "spring.kafka")
@ConfigurationProperties(prefix = "spring.kafka")
public class KafkaConfigurationProperties {

    /**
     * 数据上报的Topi
     */
    @Value("${spring.kafka.topics.measurementsUp}")
    private String measurementsUp;
}
